package com.overseasShopping.Biz.impl;

import java.util.List;

import com.overseasShopping.Base.DAO.OrderListDAO;
import com.overseasShopping.Biz.OrderListBiz;
import com.overseasShopping.pojo.OrderList;

public class OrderListBizImpl implements OrderListBiz{

	private OrderListDAO orderListDAO = null;
	
	public void setOrderListDAO(OrderListDAO orderListDAO) {
		this.orderListDAO = orderListDAO;
	}

	public List<OrderList> getUserIdAll(String buyUserId,String saleUserId) {
		return orderListDAO.getUserIdList(buyUserId, saleUserId);
	}

	public List<OrderList> getSaleUserIdAll(String saleUserId) {
		return orderListDAO.getSaleUserIdList(saleUserId);
	}

	public List<OrderList> getBuyUserIdAll(String buyUserId) {
		return orderListDAO.getBuyUserIdList(buyUserId);
	}

	public List<OrderList> getStateAll(int state) {
		return orderListDAO.getStateList(state);
	}

	public List<OrderList> getBuyStateList(int state, String buyUserId) {
		return orderListDAO.getBuyStateList(state, buyUserId);
	}

	public List<OrderList> getSaleStateList(int state, String saleUserId) {
		return  orderListDAO.getSaleStateList(state, saleUserId);
	}

	public OrderList getOrder(String orderId) {
		return orderListDAO.get(orderId);
	}

	public void update(OrderList orderList) {
		orderListDAO.update(orderList);
		
	}

	public void delete(OrderList orderList) {
		orderListDAO.delete(orderList);
	}

	public void addOrder(OrderList order) {
		orderListDAO.addOrder(order);
	}

}
